const { defineConfig } = require('@vue/cli-service')

const Mock = require('mockjs')
const List=Mock.mock({
   'list|4':[
      {
        "id|+1":1,
        order:'t3454465462',
        name:'@cname',
        phone:'15503418546',
        type:'二手房出售',
        "price|100-1000":100,
        date:'@date',
      }
   ]
}).list
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
     open:true,
     onBeforeSetupMiddleware({app}){
       app.get('/api/list',(req,res)=>{
          res.send(List)
       })
     }
  }

})
